/**
 * MessageCheck 业务逻辑实现类
 * @author yanwl
 * @date 2014-12-09
 */
package com.chnbst.mbstyun.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.test.context.transaction.TransactionConfiguration;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.chnbst.mbstyun.dao.MessageCheckDao;
import com.chnbst.mbstyun.pojo.MessageCheck;
import com.chnbst.mbstyun.service.MessageCheckService;


@Service
@Transactional(propagation = Propagation.REQUIRED)
@TransactionConfiguration(transactionManager = "txManager", defaultRollback = true)
public class MessageCheckServiceImpl implements MessageCheckService {

	@Resource
	private MessageCheckDao messageCheckDao;

	
	@Override
	public void insertMessage(MessageCheck messageCheck) {
		messageCheckDao.insertMessage(messageCheck);
	}

	@Override
	public MessageCheck selectByToTel(String toTel) {
		return messageCheckDao.selectByToTel(toTel);
	}

	@Override
	public void updateMessageCheck(MessageCheck messageCheck) {
		messageCheckDao.updateMessageCheck(messageCheck);
	}

	
}
